;
(function () {

  'use strict';

  angular.module('controllers.customActivity')
    .controller('summaryCtrl', summaryCtrl);

  function summaryCtrl($scope, summaryService, $mdDialog) {

    $scope.service = summaryService;
    $scope.service.querySummaryList();

    $scope.$on("$destroy", function () {
      $mdDialog.hide();
    });
  }

  summaryCtrl.$inject = ['$scope', 'summaryService', '$mdDialog'];
})();